#!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys


def main():
    """Run administrative tasks."""
    os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'web02.settings')
    try:
        from django.core.management import execute_from_command_line
    except ImportError as exc:
        raise ImportError(
            "Couldn't import Django. Are you sure it's installed and "
            "available on your PYTHONPATH environment variable? Did you "
            "forget to activate a virtual environment?"
        ) from exc
    execute_from_command_line(sys.argv)


if __name__ == '__main__':
    main()


# https://www.bilibili.com/video/BV1k24y1E7PF?p=3

# 创建超级管理员用户   python manage.py createsuperuser
# admin root

# 使用 Visual Studio Code（VSCode）搭建简单的Python+Django开发环境的方法步骤
# https://www.jb51.net/article/152904.htm
